/*
 *  Copyright (C) 2010 Glauco
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package org.balisunrise.common;

/**
 * Esta inteface controla de disponibiliza as entidade para o BaliGrid.
 * @author Glauco
 * @version 1.0
 */
public interface GridModel extends Basic{

	/**
	 * Retorna a classe da entidade.
	 */
	public Class getEntityClass();

	/**
	 * Retorna o Alias do modelo do Grid.
	 */
	public String getAlias();

	/**
	 * Retorna um array com as colunas do Grid.
	 */
	public GridColumn[] getColumns();

	/**
	 * Retorna o EntityList, que contém as entidades que devem ser listadas no Grid.
	 */
	public EntityList getEntityList();

        /**
         * Atribui o EntityList com as entidade para ser listada.
         * @param entityList
         */
        public void setEntityList(EntityList entityList);
}